package com.kadron.item;

import java.io.Serializable;

import com.kadron.base.KBase;

public class KPriceData extends KBase implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1990450313599525624L;

	private long currencyId;
	private Double price;

	private KPriceData() {
		super();
	}

	public KPriceData(long currencyId) {
		this();
		this.currencyId = currencyId;
	}

	public KPriceData(long currencyId, Double price) {
		super();
		this.currencyId = currencyId;
		this.price = price;
	}

	public long getCurrencyId() {
		return currencyId;
	}

	public void setCurrencyId(long currencyId) {
		this.currencyId = currencyId;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + (int) (currencyId ^ (currencyId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		KPriceData other = (KPriceData) obj;
		if (currencyId != other.currencyId)
			return false;
		return true;
	}

}
